using Core;
using IglooCoder.Commons.WcfNhibernate;
using NHibernate;

namespace Infrastucture
{
    public class GroupRepository : BaseNHibernateRepository<Group>
    {
        public GroupRepository(ISessionStorage sessionStorage)
            : base(sessionStorage)
        {
        }


        public void UpdateEmailStatus(string groupID)
        {
            ISQLQuery command =
            Session.CreateSQLQuery("Update Groups set HasSent=1 Where GroupID='" + groupID + "'");
            int res = command.ExecuteUpdate();
        }
    }
}